package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.NewsSendMPmVillagePageRequest;
import com.bykj.property.model.NewsSendMPmVillage;
    import com.bykj.property.model.NewsSendMPmVillage;
import com.bykj.property.model.PmVillage;
import org.apache.ibatis.annotations.*;
    import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

/**
* <p>
    * 信息小区关联表 Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-06-20
*/
public interface NewsSendMPmVillageMapper extends BaseMapper<NewsSendMPmVillage> {


        @Select("select  * from news_send")
        @Results({
        @Result(property = "newsSend",column = "news_send_id",many = @Many(select = "com.bykj.property.mapper.PmVillageMapper.selectById"))
        }
        )
        Page<NewsSendMPmVillage> queryPage(NewsSendMPmVillagePageRequest pageRequest);
        @Select("select  * from news_send")
        @Results({
        @Result(property = "newsSend",column = "news_send_id",many = @Many(select = "com.bykj.property.mapper.PmVillageMapper.selectById"))
        }
        )
        List<NewsSendMPmVillage> queryList(NewsSendMPmVillage model);

        List<PmVillage> queryIsContain(@Param("newsSendId") Long newsSendId);



}